@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">
            <input id="userId" type="hidden" value="${userId}"/>

            <div class="row">
                <div class="col-sm-6 b-r">
                            <!--<#input id="id" name="编号" underline="true"/>-->

                            <!--<#input id="leaveTypeId" name="请假类型id" underline="true"/>-->
                            <#select id="leaveTypeId" name="请假类型id" underline="true">
                                <option value=""></option>
                            </#select>
                            <!--<#input id="startDate" name="请假开始时间" type="date" onfocus="WdatePicker({maxDate:'%yyyy-%MM-%dd'})"/>-->
                <#input type="text" class="layui-input" id="startDate" name="请假开始时间"/>
                <!--<input type="text" class="layui-input" id="test-limit1" placeholder="yyyy-MM-dd">-->
                </div>

                <div class="col-sm-6">
                            <#input id="days" name="请假天数" underline="true"/>
                            <#input type="text" class="layui-input" id="endDate" name="请假结束时间"/>
                            <#input id="remarks" name="备注" underline="true"/>
                            <#input id="approveStatus" name="是否通过（1）不通过（2）通过" underline="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="LeaveApplyInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="LeaveApplyInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script>

    laydate.render({
        elem: '#startDate'
        ,type: 'date'
        ,format: 'yyyy-MM-dd HH:mm'
    });

    //开启公历节日
    laydate.render({
        elem: '#startDate'
        ,type: 'datetime'
        ,trigger: 'click'//呼出事件改成click
        , calendar: true
    });
    //开启公历节日
    laydate.render({
        elem: '#endDate'
        ,type: 'datetime'
        ,trigger: 'click'//呼出事件改成click
        , calendar: true
    });
</script>
<script src="${ctxPath}/static/modular/system/leaveApply/leaveApply_info.js"></script>
@}
